package com.maimao.model.info;

import lombok.*;

import java.io.Serializable;
import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2020/11/28 10:54 上午
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Region implements Serializable {

    private static final long serialVersionUID = 3013825294627816324L;

    private Integer id;

    private Integer pid;

    private String name;

    private Integer type;

    private Integer code;

    private List<Region> children;


    @Override
    public String toString() {
        return "Region{" +
                "id=" + id +
                ", pid=" + pid +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", code=" + code +
                '}';
    }
}
